using System.Collections;
using System.Collections.Generic;
using FrameWork.Inventory;
using UnityEngine;
using TMPro;

namespace FrameWork.Inventory
{
    public class InventoryDescription : SingletonMonoBehaviour<InventoryDescription>
    {
        [Header("物品介绍栏")] [SerializeField] private TMP_Text itemName;
        [SerializeField] private TMP_Text itemDescription;

        protected override void Awake()
        {
            base.Awake();
            itemName.text = "物品名称";
            itemDescription.text ="物品介绍";
        }

        public void SetDescription(string ItemName, string ItemDescription)
        {
            itemName.text = ItemName;
            itemDescription.text = ItemDescription;

        }
    }

}